﻿var contentHeightController = {
    setContentHeight: function () {
        if ($(window).width() > 450) {
            var newh = $(window).height() - $("#patient").position().top - 5;
            var h = 472 > newh ? 472 : newh;
            $(".result").css({
                "height": h
            });
        }
        else {
            $(".result").css({
                "height": "auto"
            });
        }
    },
    activeChangeContentHeight: function () {
        var p = this;
        $(window).on("resize", function () {
            p.setContentHeight();
        });
    },
};